<template>
	<view class="">
		<view class="he1 w100pc"></view>
		<!-- 头部 -->
		<view class="fsb lrmg-30" style="height: 100rpx;">
			<image src="/static/image/9.png" style="width:86rpx;height:50rpx" class="" @click="pageback()"></image>
			<view class=""></view>
		</view>
		<view class="he3 w100pc"></view>
		<view class="lrmg-30 fff">
			<view class="bra20" style="background: linear-gradient(0deg, #1C426E 0%, #3666A0 100%);padding: 40rpx;">
				<view class="weight f26">USDT資産</view>
				<view class="w100pc" style="height: 100rpx;"></view>
				<view class="" style="text-align: center;">
					<text style="font-size: 80rpx;" class="weight">{{userInfo.usdt}}</text>
					<text class="f24 mg-l-40">USDT</text>
				</view>
				<view class="f26 weight mg-t-20 mg-r-50" style="text-align: right;">≈ $ {{(Number(userInfo.usdt) * Number(shouxufei.usdt_exchange)).toFixed(4)}}</view>
				<!-- <view class="mg-t-40 fsb" style="border-top: 1rpx solid rgba(255,255,255,.4);">
					<view class="fcc" style="width: 49%;" >
						<view class="fdc aic mg-t-20">
							<view class="f24">獎勵額度</view>
							<view class="mg-t-20 f26" style="color: #F3F3F3;">1.000</view>
						</view>
					</view>
					<view class="" style="width: 1rpx;background: #fff;height:80rpx"></view>
					<view class="fcc" style="width: 49%;">
						<view class="fdc aic mg-t-20">
							<view class="f24">可提現</view>
							<view class="mg-t-20 f26" style="color: #F3F3F3;">1.000</view>
						</view>
					</view>
				</view> -->
			</view>
			<view class="bra20 mg-t-30 fff" style="background: #1C416D;padding: 20rpx 40rpx;">
				<view class="fsa">
					<view class="fdc aic" @tap="pageto('/pages/wode/zhuanzhang')">
						<image src="/static/image/18.png" style="width:50rpx;height:50rpx" class=""></image>
						<view class="mg-t-20 f24" style="color: #F3F3F3;">轉賬</view>
					</view>
					<view class="fdc aic" @tap="pageto('/pages/wode/tixian')">
						<image src="/static/image/19.png" style="width:50rpx;height:48rpx" class=""></image>
						<view class="mg-t-20 f24" style="color: #F3F3F3;">提現</view>
					</view>
				</view>
			</view>
			<view class="tmmgin-40 gray272 f32 weight">資産</view>
			<view class="bra20 fff" style="background: #272A33;padding: 20rpx 40rpx;">
				<view class="fsb">
					<view class="fdc al-start">
						<view class="f26 weight" style="color: #fff;">MMST</view>
					</view>
					<view class="fdc al-end">
						<view class="f24" style="">{{userInfo.lcc}} MMST</view>
						<view class="mg-t-20 f24" style="color: #F3F3F3;">≈ $ {{(Number(userInfo.lcc) * Number(shouxufei.lcc_exchange)).toFixed(4)}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="he3 w100pc"></view>
	</view>
</template>

<script>
	var	that
	import {
		_updataTabBar,
		pageto,
		pageback
	} from "../../common/js/sysfun.js"
	import {
		mapGetters,
		mapMutations
	} from 'vuex'
	export default{
		data(){
			return{
				userInfo:{},
				shouxufei:{}
			}
		},
		onLoad() {
			that = this
		},
		onShow() {
			that.getUser()
			that.shouxu()
		},
		methods:{
			shouxu(){
				that.$postAjax('api/Finance/finance_config','',function(res){
					console.log(res);
					that.shouxufei = res.data
				})
			},
			getUser(){
				that.$postAjax('api/Member/wallet','',function(res){
					console.log(res);
					that.userInfo = res.data
				})
			},
			pageto(url, pp) {
				pageto(url, pp);
			},
			pageback(){
				pageback()
			}
		}
	}
</script>

<style lang="scss">
	
</style>